PHP error log does not display script names nor does it display the errors' line numbers [migrated]
Posted
by
gnxtech3
on Pro Webmasters
See other posts from Pro Webmasters
or by gnxtech3
Published on 2012-08-27T19:39:53Z
Indexed on
2012/08/30
21:51 UTC
Read the original article
Hit count: 146
php
I think the title is self-explanatory, and my Google-fu isn't bringing up anything useful.
I'm working on a new host, and my php error log only displays the error itself, not which script is the offender, nor which line number the error is occurring on.
Makes it a tad difficult to debug, especially since there's only 1 error in the script.
More info: I'm not using a custom error handler that I'm aware of. This is a standard Wordpress install.
The error was
[27-Aug-2012 19:22:36 UTC] PHP NOTICE: Trying to get property of non-object. Just no script name or line number in the error
I found that Wordpress' error logging contained the information to debug the problem, but that doesn't explain why the log didn't contain line number or script.
© Pro Webmasters or respective owner